﻿@model prohomework.Models.Article

@{
    ViewBag.Title = "阅读文章";
}

<h2>阅读文章</h2>


<table width="750" border="0" align="center" cellpadding="1" cellspacing="1" class="a2">
    <tr>
        <td height="35" class="a1" align="center">&nbsp;<span class="style2">@Model.AT_Title</span></td>
    </tr>
    <tr>
        <td height="30" class="a3" align="center">
            &nbsp;<span class="style4"></span>
                <span class="style4">作者：</span>
                <span class="style5">@Model.AT_AuthorName</span>
                <span class="style4">时间：</span>
                <span class="style5">　@Model.AT_updatetime</span>
                <span class="style4">阅读次数：</span>
                <span class="style5">@Model.AT_hits　</span>
                <span class="style4">类别：</span>
                <span class="style5"> @Model.AT_ClassName</span>
        </td>
    </tr>
    <tr>
        <td valign="top" class="a3">
            &nbsp;
            <table width="100%" border="0" cellspacing="20" cellpadding="0">
                <tr>
                    <td><p></p>@Html.Raw(Model.AT_Content)<p></p></td>
                </tr>

                @if (Model.AT_pic !=null)
                {
                <tr>
                    <td align="center">
                        @if (Model.AT_fileContentType == "application/x-shockwave-flash")
                        {
                            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">
                                <param name="movie" value="@Url.Action("showImageorSwf",new {ID=Model.AT_ID })">
                                <param name="quality" value="high">
                                <embed quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
                            </object>
                        }

                        else if (Model.AT_fileContentType == "image/gif" || Model.AT_fileContentType == "image/pjpeg")
                        {

                            <img src="@Url.Action("showImageorSwf",new {ID=Model.AT_ID })" border="0">
                        }
                        else
                        {
                            <a href="@Url.Action("ArticleInsideDownloadFile",new {ID=Model.AT_ID })">@Model.AT_fileName asd</a>

                        }
                    </td>

                </tr>
                }
             
            </table>
        </td>
    </tr>
    <tr>
        <td valign="top" class="a3">
            <div align="center">
                <input type=button value="　关闭　" onClick="javascript:self.close();">
                &nbsp;
            </div>
        </td>
    </tr>
</table>

